﻿using Se.Net.Sockets;
using Se.Model;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Concurrent;
using System.Threading;
using System.Net.Sockets;
using Se.Log;
using Google.ProtocolBuffers.Descriptors;
using Se.Model.Generator;
using SeClient.Module;
using SeClient.UnitTest;

namespace SeClient
{
    public class Program
    {
        public static void Main(string[] args)
        {
            Console.Title = "Client";
            Thread.Sleep(5000);

            var net = new WorldNet("127.0.0.1", 20003);
            if (!net.TryConnect("127.0.0.1", 9901))
            {
                SeLog.Error("连接服务器失败");
                SeLog.Info("Enter键结束");
                Console.ReadLine();
                return;
            }
            GameWorld.NetState = net;

            TestModule.Begin(100);

            Console.ReadLine();
        }

    }
}
